.error-boundary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80rpx 40rpx;
  text-align: center;
  min-height: 400rpx;
  
  .error-icon {
    font-size: 120rpx;
    margin-bottom: 30rpx;
    opacity: 0.7;
  }
  
  .error-title {
    font-size: 36rpx;
    color: #333;
    font-weight: 600;
    margin-bottom: 16rpx;
  }
  
  .error-message {
    font-size: 28rpx;
    color: #666;
    line-height: 1.5;
    margin-bottom: 40rpx;
  }
  
  .error-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8rpx;
    padding: 20rpx;
    margin-bottom: 30rpx;
    max-width: 100%;
    overflow-x: auto;
    
    .error-stack {
      font-size: 24rpx;
      color: #dc3545;
      font-family: monospace;
      white-space: pre-wrap;
      word-break: break-all;
    }
  }
  
  .error-actions {
    display: flex;
    gap: 20rpx;
    
    .error-button {
      padding: 20rpx 40rpx;
      border-radius: 25rpx;
      font-size: 28rpx;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &.primary {
        background: #00AF82;
        color: white;
        
        &:active {
          transform: scale(0.95);
          background: #009973;
        }
      }
      
      &.secondary {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e9ecef;
        
        &:active {
          transform: scale(0.95);
          background: #e9ecef;
        }
      }
    }
  }
}

// 小型错误边界（用于组件内部）
.error-boundary-small {
  padding: 40rpx 20rpx;
  min-height: 200rpx;
  
  .error-icon {
    font-size: 80rpx;
    margin-bottom: 20rpx;
  }
  
  .error-title {
    font-size: 28rpx;
    margin-bottom: 12rpx;
  }
  
  .error-message {
    font-size: 24rpx;
    margin-bottom: 30rpx;
  }
  
  .error-actions {
    gap: 16rpx;
    
    .error-button {
      padding: 16rpx 32rpx;
      font-size: 24rpx;
    }
  }
}
